<?$this->load->view('admin/header');?>
<!-- Content Area -->
<div id="middlepart">
    <!-- Left column -->
    <div id="leftcolumn">
        <h1>Page Management</h1>

        <?$this->load->view('admin/system_messages');?>

        <!-- Tables 1 -->
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Date Created</th>
                    <th>Date Updated</th>
                    <th>Title</th>
                    <th>Author</th>
                    <th>Views</th>
                    <th>Status</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                <?foreach ($this->mdl_pages->get() as $page) {?>
                <tr>
                    <td><?=$page->page_id;?></td>
                    <td><?=date('Y-m-d', $page->date_created);?></td>
                    <td><?=date('Y-m-d', $page->date_updated);?></td>
                    <td><?=$page->title;?></td>
                    <td><?=$page->display_name;?></td>
                    <td></td>
                    <td></td>
                    <td width="125px">
                            <?=anchor('admin_pages/form/page_id/' . $page->page_id, 'edit', array('class'=>'edit'));?>
                            <?=anchor('admin_pages/delete/page_id/' . $page->page_id, 'delete', array('class'=>'delete', 'onclick'=>$this->inktype->verify_delete()));?>
                    </td>
                </tr>
                <?}?>
            </tbody>
        </table>
        <!-- Tables 1 -->
        <br />
        <div style="text-align: center;"><?=$this->mdl_pages->page_links;?></div>
        <br />
    </div>
    <!-- Left Column -->
    <?$this->load->view('admin/pages_side_box');?>
</div>
<!-- Content -->

<?$this->load->view('admin/footer');?>